package com.wxzhou.wangzhuan.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * 实名用户三方提现信息绑定响应对象
 */
public class UserBindWithdrawCheckResponseDto implements Serializable {

    /**
     * 是否已实名
     */
    @JsonProperty("is_auth")
    private Boolean isAuth;

    /**
     * 未实名时,实名跳转的小程序地址
     */
    private String authUrl;

    public UserBindWithdrawCheckResponseDto() {
    }

    private UserBindWithdrawCheckResponseDto(Boolean isAuth, String authUrl) {
        this.isAuth = isAuth;
        this.authUrl = authUrl;
    }

    public static UserBindWithdrawCheckResponseDto notBind(String authUrl) {
        return new UserBindWithdrawCheckResponseDto(false, authUrl);
    }
    public static UserBindWithdrawCheckResponseDto hasBind() {
        return new UserBindWithdrawCheckResponseDto(true, null);
    }

    @JsonProperty("is_auth")
    public Boolean getAuth() {
        return isAuth;
    }

    public void setAuth(Boolean auth) {
        isAuth = auth;
    }

    public String getAuthUrl() {
        return authUrl;
    }

    public void setAuthUrl(String authUrl) {
        this.authUrl = authUrl;
    }
}
